﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Universum.Model.Domain;
using TBlog = Universum.Model.Domain.Blogs.Blog;

namespace Universum.Infrastructure.Persistence.Queries.Blog
{
	public class BlogByOwner : IDomainQuery<TBlog>
	{
		public BlogByOwner(string username)
		{
			Expression = b => b.Owner.Equals(username);
		}
		

		#region IDomainQuery<Blog> Members

		public System.Linq.Expressions.Expression<Func<TBlog, bool>> Expression
		{
			get;
			private set;
		}

		#endregion
	}
}
